tools/libvchan: Remove unwanted debugging code
authorOlaf Hering <olaf@aepfle.de>
Tue, 17 Apr 2012 17:18:49 +0000 (18:18 +0100)
committerOlaf Hering <olaf@aepfle.de>
Tue, 17 Apr 2012 17:18:49 +0000 (18:18 +0100)
commit75f1b60ed083fd1d9bf3feb7c79c2883d884ad78
treea64313dfb655f1a857fd9f75e27faf70b2e4c9d0
parent55fb80266efe5583fe34ac62a93cee55bd30a44b
tools/libvchan: Remove unwanted debugging code

-O2 -Wall -Werror triggers these warnings:

io.c: In function 'do_send':
io.c:196: warning: ignoring return value of 'writev', declared with attribute warn_unused_result
io.c: In function 'do_recv':
io.c:287: warning: ignoring return value of 'writev', declared with attribute warn_unused_result

writev to -1 will always fail, silence the warning by removing the offending
(disabled) debug code.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libvchan/io.c